//正常引入路由组件
import Home from "@/views/Home";
//暴露给index
export default [
  {
    path: "*",
    //重定向到/home
    redirect: "/home",
  },
  {
    //首页
    path: "/home",
    component: Home,
    meta: {
      //显示底部导航
      showFooterNav: true,
    },
  },
  {
    //周边
    path: "/location",
    //路由懒加载
    component: () => import("@/views/Location"),
    meta: {
      showFooterNav: true,
    },
  },
  {
    //订单
    path: "/order",
    component: () => import("@/views/Order"),
    meta: {
      showFooterNav: true,
    },
  },
  {
    //我的
    path: "/my",
    component: () => import("@/views/My"),
    meta: {
      showFooterNav: true,
    },
  },
  {
    //全部商品
    path: "/allgoods",
    //路由懒加载
    component: () => import("@/views/AllGoods"),
  },
  {
    //商品内容
    path: "/goods",
    component: () => import("@/views/Goods"),
  },
  {
    //优惠
    path: "/coupon",
    component: () => import("@/views/Coupon"),
  },
  {
    //会员
    path: "/vip",
    component: () => import("@/views/Vip"),
  },

  {
    //评价
    path: "/assess",
    component: () => import("@/views/Assess"),
  },
  {
    //收藏
    path: "/collect",
    component: () => import("@/views/Collect"),
  },
  {
    //搜索
    path: "/search",
    component: () => import("@/views/Search"),
  },
  {
    //登录
    path: "/login",
    component: () => import("@/views/Login"),
  },
  {
    //注册
    path: "/register",
    component: () => import("@/views/Register"),
  },
];
